package com.example.demo.mapper;

import com.example.demo.domain.entity.Company;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.dto.ItemDto;

import java.util.List;

/**
* @author DaoJia
* @description 针对表【company】的数据库操作Mapper
* @createDate 2024-05-04 23:06:42
* @Entity com.example.demo.domain.entity.Company
*/
public interface CompanyMapper extends BaseMapper<Company> {
    /**
     * 获取全部公司
     * @return
     */
    List<ItemDto> getAllCompany();

    /**
     * 获取单个公司
     * @param companyId
     * @return
     */
    ItemDto getCompany(Long companyId);
}




